/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mlbs.session;

import com.mlbs.helper.Invoice;
import java.util.Date;
import javax.ejb.Local;

/**
 * Responsible for providing the billing services in the middleware. Applications can
 * generate invoice or reterive the charges for using a application by any user.
 * @author hubharan
 */
@Local
public interface BillingSBLocal {

    float getAppUsageCharges(int appId, String session, Date fromDate, Date toDate);

    Invoice getInvoice(String session);

    com.mlbs.helper.Invoice [] getInvoices(String session, Date fromDate, Date toDate);

    boolean updateUsage(int appId, String session, float duration);
    
}
